if (GST_FOUND)
    set(VIDEO_SRC
        GStreamer.h            GStreamer.cpp
        GstMPlayVideoSinkBin.h GstMPlayVideoSinkBin.cpp
        IVideoReceiver.h
        GstVideoReceiver.h GstVideoReceiver.cpp
    )
    set(VIDEO_LIB
        qmlglsink
    )
endif()

add_library(VideoStreaming
    ${VIDEO_SRC}
)

target_link_libraries(VideoStreaming
    PUBLIC
        Qt5::OpenGL
        Qt5::Quick
        Qt5::Multimedia
        ${VIDEO_LIB}
)

target_include_directories(VideoStreaming
    PUBLIC
        ${GST_INCLUDE_DIRS}
    INTERFACE
        ${CMAKE_CURRENT_SOURCE_DIR}
)
